<?php
namespace App;

abstract class BasePackage
{
  public function setParams($params) {
    $this->config->set($this->name, $params);
  }

  public function getView()
  {
    return view("$this->name::$this->name", [
      'data' => $this->config->get($this->name),
    ]);
  }

  public static function get_id() {
    return uniqid();
  }
}